package org.govhack.okcapital.model;

import java.io.Serializable;

/**
 * Represents a single rating of a dataset, a collection of these can be summed to rate a city 
 * @author Josh Vote
 *
 */
public class DatasetRating implements Serializable {
    /**
     * The unique ID of the dataset being rated
     */
    private String datasetId;
    /**
     * Tbe rating given of the dataset [0, inf) with higher numbers being 'better' 
     */
    private Double rating;
    
    /**
     * 
     * @param datasetId The unique ID of the dataset being rated
     * @param rating Tbe rating given of the dataset [0, inf) with higher numbers being 'better'
     */
    public DatasetRating(String datasetId, Double rating) {
        super();
        this.datasetId = datasetId;
        this.rating = rating;
    }
    
    /**
     * The unique ID of the dataset being rated
     * @return
     */
    public String getDatasetId() {
        return datasetId;
    }
    /**
     * The unique ID of the dataset being rated
     * @param datasetId
     */
    public void setDatasetId(String datasetId) {
        this.datasetId = datasetId;
    }
    /**
     * Tbe rating given of the dataset [0, inf) with higher numbers being 'better'
     * @return
     */
    public Double getRating() {
        return rating;
    }
    /**
     * Tbe rating given of the dataset [0, inf) with higher numbers being 'better'
     * @param rating
     */
    public void setRating(Double rating) {
        this.rating = rating;
    }
    
    
}
